package com.ldk.admin.common;

/**
 * 上传文件返回结果
 * @author xiangwl
 * 2016年11月22日
 * com.ycwl.platform.admin.common
 * UploadResult
 */
public class UploadResult {
	
	public UploadResult(){
		
	}
	public UploadResult(Status status, String link, String thumb){
		this.status = status;
		this.link = link;
		this.thumb = thumb;
	}
	
	public void AddError(String message){
		this.status = Status.ERROR;
		this.link = "";
		this.thumb = "";
		this.message = message;
	}
	
	public void AddOk(String link, String thumb){
		this.status = Status.OK;
		this.link = link;
		this.thumb = thumb;
	}
	
	private Status status;
	private String link;
	private String thumb;
	private String message;

	public String getLink() {
		return link;
	}

	public void setLink(String link) {
		this.link = link;
	}
	public String getThumb() {
		return thumb;
	}
	public void setThumb(String thumb) {
		this.thumb = thumb;
	}
	public Status getStatus() {
		return status;
	}
	public void setStatus(Status status) {
		this.status = status;
	}
	/**
	 * @return the message
	 */
	public String getMessage() {
		return message;
	}
	/**
	 * @param message the message to set
	 */
	public void setMessage(String message) {
		this.message = message;
	}
	
}
